-- GENERATED SPELL FOR [Quagmirran] --


function spell0_17942(pUnit, Event) --@Acid Spray,n/a--
pUnit:FullCastSpellOnTarget(38153,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17942', 8000, 1)
end

function spell1_17942(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17942', 740, 1)
end

function spell2_17942(pUnit, Event) --@Poison Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(34780,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17942', 6000, 1)
end

function spell3_17942(pUnit, Event) --@Poison Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(39340,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17942', 6000, 1)
end

function spell4_17942(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(32055,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17942', 745, 1)
end

function Sorts_17942(pUnit, Event)
local choix_sorts_17942 = math.random(0, 4)
if choix_sorts_17942 == 0 then
pUnit:RegisterEvent('spell0_17942', 1, 1)
end
if choix_sorts_17942 == 1 then
pUnit:RegisterEvent('spell1_17942', 1, 1)
end
if choix_sorts_17942 == 2 then
pUnit:RegisterEvent('spell2_17942', 1, 1)
end
if choix_sorts_17942 == 3 then
pUnit:RegisterEvent('spell3_17942', 1, 1)
end
if choix_sorts_17942 == 4 then
pUnit:RegisterEvent('spell4_17942', 1, 1)
end
end

function mob17942_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17942', math.random(1500, 3000), 1)
end

function mob17942_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17942_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17942_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17942, 1, 'mob17942_Action')
RegisterUnitEvent(17942, 2, 'mob17942_Leave')
RegisterUnitEvent(17942, 3, 'mob17942_Kill')
RegisterUnitEvent(17942, 4, 'mob17942_Die')
